/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Modelo;

/**
 *
 * @author Robert Alvarado
 */
public class Registrar {

    public Registrar() {
        
    }
    
    public int Contar(String Frase){
        
        int P = 0;
        System.out.println(Frase.length());
        
        for(int a = 0; a < Frase.length(); a++){
            if(Frase.charAt(a) == ' '){
                P++;
            }
        }
        return P+1;
    }
    
    
    
}
